package org.djw.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    private Integer currentPage = 1;
    private Integer pageSize = 4;

    private String keyword;
    /**
     * 分页查询limit第一个参数
     * @return
     */
    public Integer getStart(){
        return (this.currentPage-1)*this.pageSize;
    }

}
